package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 我的训练-项目记录
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2025/3/5 11:23
 */
@Data
@TableName(value = "TRAINING_USER_DETAILS",autoResultMap = true)
@Entity(name = "TRAINING_USER_DETAILS")
@AccEntity(value = "我的训练-项目记录", type = EntityType.SERVICE_ENTITY)
public class TrainingUserDetails extends DomainBaseEntity<TrainingUserDetails> {

    /**
     * 训练用户id
     */
    private Long trainingUserId;

    /**
     * 状态：0-待提交 1-已提交
     */
    @Column()
    private Integer status;

    /**
     * 训练日期
     */
    @Column
    private LocalDate trainingDate;

    /**
     * 训练部门id
     */
    @Column()
    private Long departmentId;

    /**
     * 训练人员id
     */
    @Column()
    private Long userId;

    /**
     * 训练日期类型：0-上午 1-下午
     */
    @Column()
    private Integer trainingDateType;

    /**
     * 训练地点
     */
    @Column()
    private String trainingPlace;

    /**
     * 训练项目id
     */
    @Column()
    private Long trainingProgramId;

    /**
     * 训练类型：0-基础训练  1-应用训练 2-小组训练
     */
    @Column()
    private Integer type;

    /**
     * 单位：0-秒 1-分 2-厘米 3-次/1分钟 4-次/2分钟 5-次/3分钟
     */
    @Column()
    private Integer unit;

    /**
     * 成绩
     */
    @Column()
    private String trainingScore;

    /**
     * 得分
     */
    @Column()
    private BigDecimal scoreValue;

    /**
     * 评定结果
     */
    @Column()
    private String assessmentResult;
}
